package cn.edu.xmu.wnw.common;

import javax.servlet.http.HttpSession;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

/**
 * 创建spring上下文，所有要使用spring 层的javabean都要继承于它
 * 
 * @author admin
 * 
 */
public class BaseService
{
	/**
	 * 
	 */
	protected WebApplicationContext springContext;

	public BaseService(HttpSession session)
	{
		springContext = WebApplicationContextUtils
				.getWebApplicationContext(session.getServletContext());
	}
}
